-- GENERATED SPELL FOR [Bladewing Bloodletter] --


function spell0_21033(pUnit, Event) --@Blood Leech,Heal--
pUnit:FullCastSpellOnTarget(37838,pUnit)
pUnit:RegisterEvent('Sorts_21033', 600, 1)
end

function spell1_21033(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(37839,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21033', 11500, 1)
end

function Sorts_21033(pUnit, Event)
local choix_sorts_21033 = math.random(0, 1)
if choix_sorts_21033 == 0 then
pUnit:RegisterEvent('spell0_21033', 1, 1)
end
if choix_sorts_21033 == 1 then
pUnit:RegisterEvent('spell1_21033', 1, 1)
end
end

function mob21033_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21033', math.random(1500, 3000), 1)
end

function mob21033_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21033_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21033_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21033, 1, 'mob21033_Action')
RegisterUnitEvent(21033, 2, 'mob21033_Leave')
RegisterUnitEvent(21033, 3, 'mob21033_Kill')
RegisterUnitEvent(21033, 4, 'mob21033_Die')
